<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<html>
<head>
<link rel="stylesheet" type="text/css" href="/hykj/css/header.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>商务合作</title>
<script type="text/javascript">
function changeUrl() {
	
	var x = document.getElementsByName("businesses");
	var url = "";
	var ur = "";
	for (i = 0; i < x.length; i++) {
		if (x[i].checked) {
			url += (x[i].value +",");
		}
		ur = url.substring(0,(url.lastIndexOf(",")));
	}
	document.getElementById("delete").action="/hykj/admin/businesses/deleteBusiness?newId=(" + ur + ")";
	
}

function deleteBusinesses() {
	document.getElementById("delete").submit();
}
</script>
</head>
<body>
<center>
<jsp:include page="/admin/head.jsp">
	<jsp:param name="menu" value="bus"></jsp:param>
</jsp:include>
<table width="945" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="left" valign="top" rowspan="2" width="655">
			<table border="0" style="word-break: break-all">
				<tr>
					<td bgcolor="#323232" align="left"><a
						href="/hykj/admin/businesses/insertBusinesses.jsp">新增</a></td>
					<td bgcolor="#323232" align="right"><input type="button" value="删除"
						onclick="deleteBusinesses()"></input></td>
				</tr>
				<tr height="30">
					<td colspan="2" width="655" align="left" valign="top"><c:set
						var="allnewslist" value="${requestScope.NewsList}" /> <c:if
						test="${empty allnewslist}">没有商品</c:if> 
						<c:if test="${!empty allnewslist}">
							<form action="" id="delete" method="post">
							<table width="100%" border="0" cellspacing="0" cellpadding="5">
								<tr>
									<td bgcolor="#323232" align="left">标题</td>
									<td bgcolor="#323232" align="right">时间</td>
								</tr>
								<c:forEach var="onenews" items="${allnewslist}">
								<tr>
								<c:if test="${!empty onenews}">
									<td><input type="checkbox" name="businesses"
										onclick="changeUrl()" value=${onenews.id } /> <a
										href="/hykj/admin/businesses/viewBusiness?newId=${onenews.id }"
										target="_blank">${onenews.title}</a></td>
									<td>${onenews.date}<br>
									</td>
								</c:if>
								</tr>
								</c:forEach>
								<tr>
									<td bgcolor="#323232" colspan="4">${requestScope.pageBar.pageLink}</td>
								</tr>
							</table>
							</form>
						</c:if>
					</td>
				</tr>
			</table>
		</td>
		<td width="280" valign="top">
		<table width="280" cellpadding="0" cellspacing="0">
			<tr>
				<td height="5"></td>
			</tr>
			<tr>
				<td width="280" height="42" style="font-weight:bold; background-color:#323232; text-align:left; text-indent:30px;">分类导航&nbsp;&nbsp;Site Menu
				</td>
			</tr>
			<tr>
				<td align="left" width="280" 
				style="background-color:#323232;
				 border-style:solid; 
				 border-top-width:thin; 
				 border-bottom-color:#323232;
				 border-left-color:#323232;
				 border-right-color:#323232;
				 padding:8px;
				 ">
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/businesses/getCategoryBusinesses?category=0">国内合作</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/businesses/getCategoryBusinesses?category=1">港澳台及东南亚地区</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/businesses/getCategoryBusinesses?category=2">欧美及其他地区</a></td>
			</tr>
			
			<tr>
				<td height="5"></td>
			</tr>

		</table>
		</td>
	</tr>
</table>



<jsp:include page="/admin/foot.jsp" /></center>
</body>
</html>